##生成器，
##1.将列表生成式的中括号改为小括号即可

def list(t):
    L=[]
    for i in range(t):
        L.append(i)
    return L

def addu(u,v):
    L2=[]
    for i in v:
        s=i+u
        L2.append(s)
    return L2

if __name__ == '__main__':
    L3=addu(1,list(10))
    print(list(10))
    print(L3)
    L4=(x+2 for x in range(10))
    print(next(L4),next(L4))
    for i in L4:
        print(i)